<!--{tpl admin/header}-->

<div>
	<strong>快捷操作</strong>
	<ul>
		<li>
			用户UID:
			<input type="text" id="user_id" style="width:30px;"/>
			<input type="button" onclick='searchUser("user_id");' value="查询" />
		</li>
		<li>&nbsp;</li>
		<li>
			全站使坏(放虫、草、蚊子、便便)
			<input type="button" onclick='request("admin.php?mod=quick&go=cron_bad", "cron_bad_msg");' value="确定" />
			<span id="cron_bad_msg"></span>
		</li>
		<li>&nbsp;</li>
		<li>
			清理消费日志
			<input type="button" onclick='request("admin.php?mod=quick&go=exchange_clean", "exchange_clean_msg");' value="确定" />
			<span id="exchange_clean_msg"></span>
		</li>
		<li>&nbsp;</li>
		<li>
			清理牧场蚊子和便便
			<input type="button" onclick='request("admin.php?mod=quick&go=mc_clean", "mc_clean_msg");' value="确定" />
			<span id="mc_clean_msg"></span>
		</li>
		<li>&nbsp;</li>
		<li>
			初始化农场和牧场成果
			<input type="button" onclick='request("admin.php?mod=quick&go=repertory_clean", "repertory_clean_msg");' value="确定" />
			<span id="repertory_clean_msg"></span>
		</li>
		<li>&nbsp;</li>
		<li>
			修复农场参数
			<input type="button" onclick='request("admin.php?mod=quick&go=farmland", "farmland_msg");' value="确定" />
			<span id="farmland_msg"></span>
		</li>
		<li>&nbsp;</li>
		<li>
			修复健康模式
			<input type="button" onclick='request("admin.php?mod=quick&go=healthmode", "healthmode_msg");' value="确定" />
			<span id="healthmode_msg"></span>
		</li>
	</ul>
</div>

<script type="text/javascript">
	function searchUser(inputId) {
		var uid = parseInt($('#'+inputId).value);
		if(uid > 0) {
			var url = "admin.php?mod=user_edit&id=" + uid;
			location.assign(url);
		}
	}
</script>

<!--{tpl admin/footer}-->
